#include <p24fj64GA006.h>
#include <stdio.h>
#include "def_bits.h"
#include "def_fonctions.h"


int main (void){
	init ();
	InitSPI();

	do{
	Verif_1 = 1;

	if( bouton_allume == 1 ){
	Verif_2 = 1;
	SPIWrite(0x0036);
	}

	if( bouton_eteint == 1 ){
	Verif_2 = 0;
	SPIWrite(0x0000);
	}

	}while(1);
	return 0;
}